//
//  Person.m
//  ceshi
//
//  Created by jihuihui on 16/11/5.
//  Copyright © 2016年 jihuihui. All rights reserved.
//

#import "Person.h"

@implementation Person

- (Person *)run {

    NSLog(@"run");
    return [[Person alloc] init];
}

- (Person *)study {
    
    NSLog(@"study");
    
    return [[Person alloc] init];
    
}

- (Person *(^)())runBlock
{
    Person *(^block)() = ^(){
    
        NSLog(@"run");
        return self;
    };
    return block;
    
}

- (Person *(^)())studyBlock {

    Person *(^block)() = ^(){
    
        NSLog(@"sutdy");
        return  self;
    };
    
    return block;
}
@end
